package com.fs.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 管理员表
 */
@Data
@TableName("sys_admin")
@Accessors(chain = true)
public class SysAdmin implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**
	 * 
	 */
	private String username;
	/**
	 * 
	 */
	private String password;
	/**
	 * 
	 */
	private String salt;
	/**
	 * 
	 */
	private Boolean status;
	/**
	 * 错误登录次数
	 */
	private Integer errNum;
	/**
	 * 错误登录时间
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private Date errTime;
	/**
	 * 
	 */
	private Date created;
	/**
	 * 
	 */
	private Date updated;

	@TableField(exist = false)
	private String catpe;

	@TableField(exist = false)
	private String uuid;

	@TableField(exist = false)
	private List<SysAdminRoles> roles;

	@TableField(exist = false)
	private Integer role;

}
